//
//  SpecialTopicCollectionViewCell.m
//  Travel
//
//  Created by 王嘉倩 on 15/9/19.
//  Copyright (c) 2015年 TeamThree. All rights reserved.
//

#import "SpecialTopicCollectionViewCell.h"

@implementation SpecialTopicCollectionViewCell

- (void)dealloc {
    [_showImgView release];
    [_titleLabel release];
    [_lineView release];
    [_timeLabel release];
    [_locationLabel release];
    [_userImgView release];
    [_userLabel release];
    [_shadowImg release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor colorWithRed:0.969 green:0.949 blue:0.902 alpha:1.000];
        
        _showImgView = [[UIImageView alloc] initWithFrame:(CGRectMake(0, 0, kWidth - 20, kHeight / (677.0 / 200)))];
        _showImgView.backgroundColor = [UIColor redColor];
        _showImgView.layer.masksToBounds = YES;
        _showImgView.layer.cornerRadius = 5;
        [self addSubview:_showImgView];
        
        _shadowImg = [[UIImageView alloc] initWithFrame:(CGRectMake(0, 0, (kWidth - 20) / 2, kHeight / (677.0 / 200)))];
        _shadowImg.image = [UIImage imageNamed:@"phone_desc_tripcell_shadow"];
        [self addSubview:_shadowImg];
        
        _titleLabel = [[UILabel alloc] initWithFrame:(CGRectMake(15, 15, kWidth - 20, 15))];
        _titleLabel.text = @"幽灵公主的故乡——屋久岛";
        _titleLabel.textColor = [UIColor whiteColor];
        _titleLabel.font = [UIFont systemFontOfSize:16.0];
        [_shadowImg addSubview:_titleLabel];
        
        
        
    }
    
    return self;
}

@end
